package mrusanov.staff

import mrusanov.player.Talent
import java.util.Date
import mrusanov.bonus.{ PhysicalShapeBonus, ExperienceBonus }
import util.Random
import mrusanov.team.Club
import mrusanov.team.ClubStaff

class Coach(name: String, birthDay: Date, exp: Int, talent: Talent) extends ClubEmployee(name, birthDay, exp, talent) {
	def expBonus(receivedExp: BigDecimal) = ExperienceBonus(this, receivedExp)
	override def isClubInfrastructureGoodEnough(club: Club) = true;

	override def addToClubStaff(club: Club) {
		require(canBeAddedToClubStaff(club))
		club.clubStaff.addCoach(this)
	}

	override def canBeAddedToClubStaff(club: Club) = club.clubStaff.coachList.size < ClubStaff.MAX_COACHES

}
